<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<title>VIP管理</title>
		<meta name="menu" content="MainMenu" />
	</head>
	<body>
		<div class="container_16">
			<div class="grid_16">
				<div class="content_top">
					<span>VIP管理</span>
				</div>
				<div class="content_bottom">
					<br />
					<display:table name="pageBean" export="true" pagesize="10" id="vipServiceList" class="table" requestURI="" decorator="org.displaytag.decorator.TotalTableDecorator">
					 	<display:column title="序号" value="${(pageBean.pageNumber - 1) * pageBean.objectsPerPage + vipServiceList_rowNum}" style="width: 15%"/>
					 	<display:column property="vipServiceId" sortable="true" title="专案号" style="width: 15%"/> 	
					 	<display:column sortable="true" title="状态" style="width: 10%"/>
					 	<display:column sortable="true" title="本阶段截至日期"  format="{0,date,yyyy-MM-dd}" style="width: 20%"/>
					 	 <display:column property="vip.username" sortable="true" title="学生姓名" style="width: 15%"/>
					    <display:column property="editor.username" sortable="true" title="专业顾问" style="width: 15%"/>  	
					 	<display:column title="操作">
					 		<a href="#" onclick="modService(${vipServiceList.id})">编辑</a>&nbsp;|&nbsp;<a href="#" >删除</a>
					 	</display:column>
					 </display:table>
				</div>	
			</div>			
		</div>
	</body>
</html>


<input type="button" onclick="newService()" value="新建VIP用户"/>&nbsp;<br/>
<display:table name="pageBean" export="true" pagesize="10" id="vipServiceList" class="table" requestURI="" decorator="org.displaytag.decorator.TotalTableDecorator">
 	<display:column title="序号" value="${(pageBean.pageNumber - 1) * pageBean.objectsPerPage + vipServiceList_rowNum}" style="width: 15%"/>
 	<display:column property="vipServiceId" sortable="true" title="专案号" style="width: 15%"/> 	
 	<display:column sortable="true" title="状态" style="width: 10%"/>
 	<display:column sortable="true" title="本阶段截至日期"  format="{0,date,yyyy-MM-dd}" style="width: 20%"/>
 	 <display:column property="vip.username" sortable="true" title="学生姓名" style="width: 15%"/>
    <display:column property="editor.username" sortable="true" title="专业顾问" style="width: 15%"/>  	
 	<display:column title="操作">
 		<a href="#" onclick="modService(${vipServiceList.id})">编辑</a>&nbsp;|&nbsp;<a href="#" >删除</a>
 	</display:column>
 </display:table>
 
<script type="text/javascript">
   // 此时 iframeA.html 页面可以使用 art.dialog.data('test') 获取到数据，如：
   // document.getElementById('aInput').value = art.dialog.data('test');
  function newService(){
   	art.dialog.open('<%=path %>/toNewVipService.html');
  }	   
  function modService(id){
	  art.dialog.open('<%=path %>/editVipService.html?id='+id);
  }
</script>
